package JJX;

import java.util.Scanner;

public class Season {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        while (true) {
        System.out.println("请输入月份？");
        int month = input.nextInt();
            if (month > 0 && month <= 12) {
                if (month == 3 || month == 4 || month == 5) {
                    System.out.println("春季");
                    break;
                } else if (month == 6 || month == 7 || month == 8) {
                    System.out.println("夏季");
                    break;
                } else if (month == 9 || month == 10 || month == 11) {
                    System.out.println("秋季");
                    break;
                } else if (month == 12 || month == 1 || month == 2) {
                    System.out.println("冬季");
                    break;
                }
            } else {
                System.out.println("你输入的月份无效，请重新输入");

            }
        }
    }
}
